﻿using UnityEngine;
using System.Collections;
using Com.ZX;
using Com.ZX.Manager;
public class B : Cube
{

}
public class Cube : BaseUnitPoolable<Cube>
{
    // Use this for initialization
    void Start()
    {
    }

    protected override void onEnable()
    {
        base.onEnable();
        if (this.gameObject.activeSelf)
        {
            Invoke("delete", 0.5f);
            //CustomDebug.Log(" d"+this.Id);
        }
    }

    void delete()
    {
        this.gameObject.SetActive(false);
        //Destroy(gameObject);
    }
    
    // Update is called once per frame
    void Update()
    {

    }
    void OnDestroy()
    {
        //CustomDebug.Log(".....");
    }

    public override void onRecycle()
    {
        base.onRecycle();
    }
    
}
